﻿(function () {
    'use strict';

    var app = angular.module('app', ['ngResource', 'ngRoute', 'ui.calendar', 'ui.bootstrap']);

    app.config([
        '$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
            $routeProvider.
                when("/scheduling", { templateUrl: "../ContentMedora/scheduling/schedule.html", controller: "scheduleCtrl" }).
                when("/scheduling/:personId", { templateUrl: "../ContentMedora/scheduling/schedule.html", controller: "scheduleCtrl" }).
                when("/personSearch", { templateUrl: "../ContentMedora/ehr/personSearch.html", controller: "personSearchCtrl" }).
                when("/referralsSchedule/:personId", {
                    templateUrl: "../ContentMedora/ehr/personReferralsSchedule.html",
                    controller: "personReferralsScheduleCtrl"
                }).
                when("/personCard/:personId", {
                    templateUrl: "../ContentMedora/ehr/personCard.html",
                    //controller: "ReferralsScheduleCtrl"
                }).
                //when("/grid", { templateUrl: "../Content/Grid/grid.html", controller: "gridCtrl" }).
                when("/home", { templateUrl: "../ContentMedora/home/home.html" }).
                otherwise({ redirectTo: '/home' });
            $locationProvider.html5Mode(false);
        }
    ]);

}());